package com.atguigu.dao.impl;

import com.atguigu.dao.OrderDao;
import com.atguigu.pojo.Order;

public class OrderDaoImpl extends BaseDaoimpl<Order> implements OrderDao {

	@Override
	public void saveOrder(Order order) {

		String sql = "INSERT INTO t_order (`order_id`,`create_time`,`price`,`status`,`user_id`)"
				+ "VALUES (?,?,?,?,?)";
		update(sql, order.getOrderId(),order.getCreateTime(),order.getPrice(),
				order.getStatus(),order.getUser_id());
	}

}
